<?php
require_once(dirname(__FILE__).'/Config.php');

class AppliInfo {
    private $appli_data = array(
        APP_ID_PC => array(
            'consumer_key'    => CONSUMER_KEY_PC,
            'consumer_secret' => CONSUMER_SECRET_PC,
        ),
        APP_ID_MB => array(
            'consumer_key'    => CONSUMER_KEY_MB,
            'consumer_secret' => CONSUMER_SECRET_MB,
        ),
    );
    public $consumer_key;
    public $consumer_secret;

    function __construct ($appli_id) {
        if (!is_numeric($appli_id)) die;
        $this->consumer_key    = $this->appli_data[$appli_id]['consumer_key'];
        $this->consumer_secret = $this->appli_data[$appli_id]['consumer_secret'];
        return TRUE;
    }
}
